package com.ark.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * @author dyz
 * @date 2025/4/11 19:26
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Schema(description = "地址簿实体类")
@TableName("address_book")
public class AddressBook implements Serializable {

    @TableId(type = IdType.AUTO)
    private Long id;

    //用户id
    @Schema(description = "用户id")
    private Long userId;

    //收货人
    @Schema(description = "收货人")
    private String consignee;

    //手机号
    @Schema(description = "手机号")
    private String phone;

    //性别 0 女 1 男
    @Schema(description = "性别 0-女 1-男")
    private String sex;

    //省级区划编号
    @Schema(description = "省级区划编号")
    private String provinceCode;

    //省级名称
    @Schema(description = "省级名称")
    private String provinceName;

    //市级区划编号
    @Schema(description = "市级区划编号")
    private String cityCode;

    //市级名称
    @Schema(description = "市集名称")
    private String cityName;

    //区级区划编号
    @Schema(description = "区级区划编号")
    private String districtCode;

    //区级名称
    @Schema(description = "区级名称")
    private String districtName;

    //详细地址
    @Schema(description = "详细地址")
    private String detail;

    //标签
    @Schema(description = "标签")
    private String label;

    //是否默认 0否 1是
    @Schema(description = "是否默认 0-否 1-是")
    private Integer isDefault;
}
